.PHONY = verbose clean cleanAll one

OUT = informe.pdf
MAIN  = informe.tex
SECTIONS = intro.tex desarrollo.tex

# Dos veces para construir el índice
$(OUT): $(MAIN) $(SECTIONS)
	pdflatex -interaction=batchmode $(MAIN)
	pdflatex -interaction=batchmode $(MAIN)

verbose:
	pdflatex -interaction=nonstopmode $(MAIN)
	
clean:
	rm -f *.aux *.out *.log *.toc

one: $(MAIN) $(SECTIONS)
	pdflatex -interaction=batchmode $(MAIN)

cleanAll: clean
	rm -f $(OUT)
